**********************************************************************************************
set more off
log using table6.log, replace text


/*
*instructions for outreg;
local instruct_ols "ctitle(OLS) dec(4)  auto(2) symbol(***,**,*) se"; 
local instruct_iv "ctitle(IV) dec(4)  auto(2) symbol(***,**,*) se addstat(First stage F, e(widstat))"; 
local instruct_iv_overid "ctitle(IV) dec(4)  auto(2) symbol(***,**,*)  se addstat(Overid,e(jp),First stage F, e(widstat))"; 
*/


********************************************************************; 
***     TABLE 6 pop growth 1990_2010 -- IV, robustness check        ; 
********************************************************************; 

** To see top 5% cutoff
sum censuspop1990_pref, detail

*** Panel A: Varying Controls and Samples

ivreg2 D_censuspop9010_cp road_1990_rays larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref                                                                         (all_road_2010_rays D_censuspop9010_pref=road_1962_rays ruralMigp00) if D0==1,                            first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  replace
ivreg2 D_censuspop9010_cp                larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref lkm2coast sh_highedu1982_cppref sh_emp_man1982_cppref sh_pop1982_cppref (all_road_2010_rays D_censuspop9010_pref=road_1962_rays ruralMigp00) if D0==1,                            first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_censuspop9010_cp                larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref                                                                         (all_road_2010_rays D_censuspop9010_pref=road_1962_rays ruralMigp00) if D0==1 & censuspop1990_cp<2403946, first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_censuspop9010_cp road_1990_rays larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref                                                                         (all_road_2010_rays D_censuspop9010_pref=road_1962_rays ruralMigp00) if D0==1 & west==0,                  first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_censuspop9010_cp                larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref lkm2coast sh_highedu1982_cppref sh_emp_man1982_cppref sh_pop1982_cppref (all_road_2010_rays D_censuspop9010_pref=road_1962_rays ruralMigp00) if D0==1 & west==0,                  first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_censuspop9010_cp                larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref                                                                         (all_road_2010_rays D_censuspop9010_pref=road_1962_rays ruralMigp00) if D0==1 & censuspop1990_cp<2403946 & west==0, first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append


******* Panel B: Base specification with different outcomes

ivreg2 D_censuspop9010_cp   larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref (all_road_2010_rays=road_1962_rays) if D0==1, first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_censuspop9010_pref larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref (all_road_2010_rays=road_1962_rays) if D0==1, first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_share9010          larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref (all_road_2010_rays =road_1962_rays) if D0==1, first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_censuspop9010_cp   larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref (all_road_2010_rays=road_1962_rays) if D0==1 & west==0, first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_censuspop9010_pref larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref (all_road_2010_rays=road_1962_rays) if D0==1 & west==0, first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append
ivreg2 D_share9010          larea_cc90 larea_pf05 province_capitalPlus lcensuspop1982_pref frac_highedu1982_pref share_emp_man1982_pref (all_road_2010_rays =road_1962_rays) if D0==1 & west==0, first ffirst robust cluster(province05)
outreg2 using "table6", word excel  dec(4)  auto(2) symbol(***,**,*)  se addstat(First stage F, e(widstat))  append





log close
